# Contributor: Lindsay Zhou <i@lin.moe>
# Maintainer: Lindsay Zhou <i@lin.moe>
pkgname=fcitx5-table-extra
pkgver=5.1.5
pkgrel=0
pkgdesc="extra-table input method support for fcitx5"
url="https://github.com/fcitx/fcitx5-table-extra"
arch="noarch"
license="GPL-3.0-or-later"
makedepends="
	cmake
	extra-cmake-modules
	gettext-dev
	fcitx5-dev
	libime-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/fcitx/fcitx5-table-extra/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
6707e722360c53c4a738b9871fdd9174ddd161a9ccd754ad48fec57e32268e18b59bf05330af238515c1af6f11b2ceb50b4c660e1f9b36422a22a19cf9307e91  fcitx5-table-extra-5.1.5.tar.gz
"
